<?php
/* @var $this EntrepriseController */
/* @var $model Entreprise */

$this->breadcrumbs=array(
	'Entreprises'=>array('index'),
	$model->nom,
);

$this->menu=array(
	array('label'=>'<span class="icon-list"></span> Voir les entreprises', 'url'=>array('index')),
	array('label'=>'<span class="icon-plus"></span> Créer une entreprise', 'url'=>array('create'), 'visible'=>!Yii::app()->user->isGuest && Yii::app()->user->canEdit),
	array('label'=>'<span class="icon-pencil"></span> Mettre à jour', 'url'=>array('update', 'id'=>$model->idEntreprise), 'visible'=>!Yii::app()->user->isGuest && Yii::app()->user->canEdit),
);
?>

<style>

.paddingTop {
	padding-top: 50px;
}

</style>


<legend><img src="<?php echo Yii::app()->theme->baseUrl;  ?>/images/identity.png">  <?php echo $model->nom; ?></legend>


<div class="row ">
    <div class="span4 well">
<!--        <legend>Identité</legend>-->
	<div class="">
		<b>Gérant(s) : </b>
		<?php if( isset( $model->civilite) ) : ?>
			<?php echo $model->civilite ?> 
		<?php endif ?>
		
		<?php echo $model->gerant ?>
	</div>
    </div>
    <div class="span3 well">
<!--        <legend class="paddingTop">Coordonnées</legend>-->
	<div>
		<b>Adresse : </b>
		<?php echo $model->rue ?>, <?php echo $model->cp ?> <?php echo $model->commune ?>
	</div>
	<div >
		<b>Email :</b> <?php echo '<a href="mailto:'.$model->email.'" >'.$model->email.'</a>' ?>
	</div>
	<div >
		<b>Téléphone :</b> <?php echo $model->telephone ?>
	</div>
	<div>
		<b>Fax :</b> <?php echo $model->fax ?>
	</div>
    </div>
</div>



<?php if( !empty($model->observation) ) : ?>
<legend><img src="<?php echo Yii::app()->theme->baseUrl;  ?>/images/ark_view.png"> <span class="small">Observation :</span></legend>
    <div class="span8 section ">            
        <?php echo BBCode::toHtml($model->observation) ?>
    </div>
    <p>&nbsp</p>
<?php endif ?>
